package com.emep.changzhi.analyse.entity.basics;

import lombok.Data;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;
import java.util.HashSet;
import java.util.Set;

/**
 * @author Wangcc
 * @version V1.0
 * @Description: 排放标准总则表
 * @date 2018/2/26 15:13
 */
@Table(name = "sys_emission_standard_total_info")
@Entity
@Data
public class SysEmissionStandardTotalInfo implements Serializable{

    private static final long serialVersionUID = 7933772524145888762L;

    @Id
    @GenericGenerator(name = "system-uuid", strategy = "uuid")
    @GeneratedValue(generator = "system-uuid")
    private String  id ;

    @Column(name = "emission_standard_total_name",columnDefinition="varchar(100) COMMENT '总则名字'" )
    private String  emissionStandardTotalName ;

    @Column(name = "emission_standard_total_code",columnDefinition="varchar(100) COMMENT '总则编码'" )
    private String  emissionStandardTotalCode ;

    @Column(name = "emission_standard_total_type",columnDefinition="varchar(100) COMMENT '总则类型'" )
    private String  emissionStandardTotalType ;

    @Column(name = "category",columnDefinition="varchar(100) COMMENT '标准类型'" )
    private String  category ;

    @Column(name = "implement_date",columnDefinition="varchar(100) COMMENT '标准实施时间'" )
    private String  implementDate ;

    @Column(name = "comment",columnDefinition="varchar(100) COMMENT '备注'" )
    private String  comment ;

    @Column(name = "create_date",columnDefinition="varchar(100) COMMENT '信息录入时间'" )
    private String  createDate = String.valueOf(System.currentTimeMillis()) ;

    @Column(name = "is_delete",columnDefinition="varchar(100) COMMENT '是否删除'" )
    private String  isDelete = "0";

    @OneToMany(mappedBy = "standardTotalInfo")
    private Set<SysEmissionStandardFineInfo> standardFineInfoList = new HashSet<SysEmissionStandardFineInfo>();

}
